# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=py3-swapper
_pkgname=swapper
pkgver=1.1.2
pkgrel=1
pkgdesc="Django Swappable Models"
url="https://github.com/wq/django-swappable-models"
arch="noarch"
license="MIT"
depends="
	py3-django
"
checkdepends="
	py3-flake8
	py3-tox
"
makedepends="py3-setuptools_scm"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
bcde7263ac4c9f20d357efc2e846fa4e3bb1163d1e26b2825714395c332e1bfe1202b213a05532e75af57198ecd6a08e57a13dc34b5f1256af95b7b7a59e261f  swapper-1.1.2.tar.gz
"
